//
//  MAUserInfo.m
//  meiang_edu
//
//  Created by hfcb on 2018/8/2.
//  Copyright © 2018年 com.meiang.meiang_edu. All rights reserved.
//

#import "MAUserInfo.h"

@implementation MAUserInfo
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"ID" : @"id"};
}

- (instancetype)initWithCoder:(NSCoder *)decode
{
    self = [super init];
    if (self) {
        self.mycode = [decode decodeObjectForKey:@"mycode"];
        self.ustelphone = [decode decodeObjectForKey:@"ustelphone"];
        self.ID = [decode decodeObjectForKey:@"ID"];
        
        self.ccode = [decode decodeObjectForKey:@"ccode"];
        self.cuserid = [decode decodeObjectForKey:@"cuserid"];
        self.name = [decode decodeObjectForKey:@"name"];
        self.usname = [decode decodeObjectForKey:@"usname"];
        self.cpinyin = [decode decodeObjectForKey:@"cpinyin"];
        
        self.usidentitycard = [decode decodeObjectForKey:@"usidentitycard"];
        self.usgender = [decode decodeObjectForKey:@"usgender"];
        self.gender = [decode decodeObjectForKey:@"gender"];
        self.ps_id = [decode decodeObjectForKey:@"ps_id"];
        
        self.usbirthday = [decode decodeObjectForKey:@"usbirthday"];
        self.usnickname = [decode decodeObjectForKey:@"usnickname"];
        self.list_notes = [decode decodeObjectForKey:@"list_notes"];
        self.denabledate = [decode decodeObjectForKey:@"denabledate"];
        self.ddisabledate = [decode decodeObjectForKey:@"ddisabledate"];
        
        self.cbackground = [decode decodeObjectForKey:@"cbackground"];
        self.token = [decode decodeObjectForKey:@"token"];
        self.hasfamily = [decode decodeObjectForKey:@"hasfamily"];
        
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)encode
{
    [encode encodeObject:self.mycode forKey:@"mycode"];
    [encode encodeObject:self.ustelphone forKey:@"ustelphone"];
    [encode encodeObject:self.ID forKey:@"ID"];
    
    [encode encodeObject:self.ccode forKey:@"ccode"];
    [encode encodeObject:self.cuserid forKey:@"cuserid"];
    [encode encodeObject:self.name forKey:@"name"];
    
    [encode encodeObject:self.usname forKey:@"usname"];
    [encode encodeObject:self.cpinyin forKey:@"cpinyin"];
    [encode encodeObject:self.usidentitycard forKey:@"usidentitycard"];
    
    [encode encodeObject:self.usgender forKey:@"usgender"];
    [encode encodeObject:self.gender forKey:@"gender"];
    [encode encodeObject:self.ps_id forKey:@"ps_id"];
    
    [encode encodeObject:self.usbirthday forKey:@"usbirthday"];
    [encode encodeObject:self.usnickname forKey:@"usnickname"];
    [encode encodeObject:self.list_notes forKey:@"list_notes"];
    
    [encode encodeObject:self.denabledate forKey:@"denabledate"];
    [encode encodeObject:self.ddisabledate forKey:@"ddisabledate"];
    [encode encodeObject:self.cbackground forKey:@"cbackground"];
    
    [encode encodeObject:self.token forKey:@"token"];
    [encode encodeObject:self.hasfamily forKey:@"hasfamily"];
}
@end
